package kr.hkit.powerjava.chapter14.work2;

import java.awt.TextField;

import javax.swing.JPanel;
import javax.swing.JTextField;

public class CarPanel01 extends JPanel {
	private JTextField tfInput; 
	private JTextField tfResult;
	
	public CarPanel01() {
		initialize();
	}

	private void initialize() {
		tfInput = new JTextField();
		add(tfInput);
		tfInput.setColumns(5);
		
		tfResult = new JTextField();
		add(tfResult);
		tfResult.setColumns(25);
	}

	public String getTfInput() {
		return tfInput.getText();
	}

	public void setTfInput(JTextField tfInput) {
		this.tfInput = tfInput;
	}

	public JTextField getTfResult() {
		return tfResult;
	}

	public void setTfResult(String text) {
		tfResult.setText(text);
	}
	
	
}
